<?php
echo 123+5000,"\n";
echo 18/5,"\n";
echo 18%5,"\n";//求余数
echo @(18.9%5.1),"\n";//两边的数据会转换为整数，再求余数
echo 3**2,"\n";//3的平方
echo 5-2*6,"\n";//-7，先算乘除
echo (-3)**2,"\n";
echo 8/3*2,"\n";//优先级相同时，看结合性
//不同类型间的数据计算
echo "100000"+234,"\n";
echo 234+"100000","\n";
echo "100000"+'234',"\n";
echo "100000"+'0o234',"\n";//不识别字符串形式的2，8,16进制
echo "100000"+'0x2A',"\n";
echo "100000"+'123aaa',"\n";
echo "100000"+'-2e2aaa',"\n";//浮点数
echo 3.14,"\n";
echo 3.14e-5,"\n";//科学计数法
//echo 0o12.34,"n";不识别2,8,16进制
echo fmod(18.9,5.1),"\n";//两边的数据会转换为整数，再求余数